Skip to content

Conversation

@StefanOssendorf
Copy link
Contributor

  • Renamed fields to have a _ as prefix
  • Changed private readonly property to readonly field
  • Use ??= insteaf if if(.. == null)
  • Remove unused ctor parameters

StefanOssendorf and others added 3 commits July 20, 2025 12:55
- Changed private readonly property to readonly field
- Use ??= insteaf if if(.. == null)
- Remove unused ctor parameters
@rockfordlhotka rockfordlhotka requested a review from Copilot July 22, 2025 19:45
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs code cleanup across the CSLA framework, focusing on modernizing field naming conventions and simplifying constructor signatures. The changes improve code consistency and reduce constructor complexity while maintaining functionality.

Key changes include:

  • Updated private field naming to use underscore prefix convention (field_field)
  • Converted auto-properties to readonly fields where appropriate
  • Replaced null-checking patterns with null-coalescing assignment operator (??=)
  • Removed unused constructor parameters from DataPortal classes

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/Upgrading to CSLA 10.md Documents breaking change for DataPortal constructor parameter removal
Source/Csla/Server/*.cs Updated field naming and converted properties to readonly fields in ServicedDataPortal classes
Source/Csla/Server/DataPortal.cs Removed unused constructor parameters, updated field naming, and modernized null-checking
Source/Csla/Serialization/Mobile/*.cs Updated field naming conventions in binary reader/writer classes
Source/Csla/Rules/BusinessRules.cs Updated field naming and modernized conditional statements
Source/Csla/DataPortalT.cs Updated field naming and null-coalescing assignment
Source/Csla/DataPortalClient/LocalProxy.cs Reorganized field declaration and updated references
Source/Csla/Core/*.cs Updated field naming in exception and context manager classes
Source/Csla/Configuration/Fluent/DataOptions.cs Updated field naming and formatting
Source/Csla.test/Fakes/Server/DataPortal/TestableDataPortal.cs Removed unused constructor parameters to match DataPortal changes

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@rockfordlhotka rockfordlhotka merged commit c5f3d6f into main Jul 22, 2025
3 checks passed
@rockfordlhotka rockfordlhotka deleted the dev/clean-up-20250720 branch July 22, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants